{
  "name": "Case 2 – Startup Funding Screening (VC Firm)",
  "nodes": [
    {
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2,
      "position": [0, 0],
      "parameters": {
        "formTitle": "Startup Funding Application",
        "formDescription": "Submit startup pitch deck for VC screening",
        "formFields": {
          "values": [
            { "fieldLabel": "Founder Name", "requiredField": true },
            { "fieldLabel": "Startup Name", "requiredField": true },
            { "fieldLabel": "Email id", "fieldType": "email", "requiredField": true },
            {
              "fieldLabel": "Startup_Pitch_Deck",
              "fieldType": "file",
              "acceptFileTypes": ".pdf",
              "requiredField": true
            }
          ]
        }
      }
    },

    {
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [220, 0],
      "parameters": {
        "inputDataFieldName": "Startup_Pitch_Deck",
        "name": "={{ $json['Startup Name'] + '_Pitch_Deck' }}",
        "folderId": "REPLACE_WITH_VC_FOLDER_ID"
      }
    },

    {
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [420, 0],
      "parameters": {
        "operation": "download",
        "fileId": "={{ $json.id }}"
      }
    },

    {
      "name": "Extract Pitch Deck",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [620, 0],
      "parameters": {
        "operation": "pdf"
      }
    },

    {
      "name": "Download VC Policy",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [820, 0],
      "parameters": {
        "operation": "download",
        "fileId": "REPLACE_WITH_VC_POLICY_FILE_ID"
      }
    },

    {
      "name": "Extract VC Policy",
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [1020, 0],
      "parameters": {
        "operation": "pdf"
      }
    },

    {
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [220, 260],
      "parameters": {
        "promptType": "define",
        "text": "=Startup Pitch Deck:\n{{ $('Extract Pitch Deck').item.json.text }}\n\nVC Investment Policy:\n{{ $('Extract VC Policy').item.json.text }}",
        "options": {
          "systemMessage": "You are a Venture Capital Investment Analyst.\n\nEvaluate the startup strictly against the VC Investment Screening & IC Policy.\n\nAssess market size, founder–market fit, traction, unit economics, burn rate, runway, competitive and regulatory risks.\n\nGenerate a structured VC screening output suitable for an internal investment register.\n\nYou MUST output ONLY valid JSON.\nYou MUST call the Google Sheets Append Row tool with this JSON.\nDo NOT add explanations or commentary."
        }
      }
    },

    {
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1,
      "position": [0, 420],
      "parameters": {
        "model": {
          "mode": "list",
          "value": "gpt-4.1-mini"
        }
      }
    },

    {
      "name": "Append row",
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4,
      "position": [420, 460],
      "parameters": {
        "operation": "append",
        "documentId": "REPLACE_WITH_GOOGLE_SHEET_ID",
        "sheetName": "VC Funding – Startup Screening Register"
      }
    },

    {
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [420, 260],
      "parameters": {
        "sendTo": "={{ $('On form submission').item.json['Email id'] }}",
        "subject": "Startup Funding Screening – Initial Review",
        "message": "={{ 'Dear ' + $('On form submission').item.json['Founder Name'] + ',<br><br>Thank you for submitting your startup pitch deck. Your proposal has undergone an initial screening as per our investment policy. Our team will reach out if we wish to proceed to the next stage.<br><br>Regards,<br>Aurora Ventures Investment Team' }}"
      }
    }
  ],

  "connections": {
    "On form submission": { "main": [[{ "node": "Upload file" }]] },
    "Upload file": { "main": [[{ "node": "Download file" }]] },
    "Download file": { "main": [[{ "node": "Extract Pitch Deck" }]] },
    "Extract Pitch Deck": { "main": [[{ "node": "Download VC Policy" }]] },
    "Download VC Policy": { "main": [[{ "node": "Extract VC Policy" }]] },
    "Extract VC Policy": { "main": [[{ "node": "AI Agent" }]] },
    "OpenAI Chat Model": { "ai_languageModel": [[{ "node": "AI Agent" }]] },
    "Append row": { "ai_tool": [[{ "node": "AI Agent" }]] },
    "AI Agent": { "main": [[{ "node": "Send Email" }]] }
  },

  "active": false
}
